import tkinter as tk
from tkinter import ttk
from Logic.history_upload import history_upload
def button_history_check():
    window = tk.Tk()
    window.geometry('600x600')
    window.title('History')
    with open("history.txt", "r",encoding="UTF-8") as f:
        content = f.read()
        label = ttk.Label(window, text=content)
        label.pack()

    button = ttk.Button(window, text="Click to upload", command=history_upload)
    button.place(x=260, y=500)